/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ManageBean;

import HouseBN.HouseService;
import entity.House;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Mr-Quick
 */
@ManagedBean
@RequestScoped
public class Homesellerr {

    public Homesellerr() {
        getallseller();
        getallleaser();
    }
    List<House> lh;
    List<House> listleaser;
    List<House> listindex;

    public List<House> getListindex() {
        return listindex;
    }
    

    public List<House> getListleaser() {
        return listleaser;
    }
    public List<House> getLh() {
        return lh;
    }
    
    public void getallseller()
    {
        HouseService hs = new HouseService();
        lh = hs.getallsellermessage();
    }
    
    public void getallleaser()
    {
        HouseService hos = new HouseService();
        listleaser = hos.getallleasermessage();
    }
    
    
    
}
